#ifndef _Map_h_
#define _Map_h_
#include<windows.h>
#include<stdio.h>
#include"QuadTree.h"
#include"Object.h"
class CMap
{
	char *file;	
	QuadTree *quadtree;
public:
	int width;
	int height;
	CMap(int level);
	void LoadMap();
	void GetObjectFromQuadTree(LIST &list, RECT screen);
	void EmptyQuadTree();
	int CollisionWithStaticObject(RECT marioRect);
	void Save(LIST list);
	void SaveGame();
	void LoadGame();
};
#endif